package com.itlong.cloud.equip.sdkv3;

import com.itlong.cloud.POJO.DTO.sdk.v3.ElevatorCheckDTO;
import com.itlong.cloud.POJO.DTO.sdk.v3.OpenDoorCheckDTO;
import com.itlong.cloud.POJO.VO.SDKMessageV3;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * <desc>
 * SDKV3设备信息业务处理暴露接口
 * </desc>
 *
 * @createDate 2021-05-17
 */
@FeignClient(name = "equip-service")
public interface ISDKV3EquipClient {

    /**
     * <desc>
     * 预约电梯检查
     * </desc>
     *
     * @param dto 检查需要的参数
     * @return
     * @author zhouchun
     * @createDate 2021-05-17
     */
    @RequestMapping(path = "/sdkv3/cloudElevatorCheck", method = RequestMethod.POST)
    SDKMessageV3 cloudElevatorCheck(@RequestBody ElevatorCheckDTO dto);

    /**
     * <desc>
     * 开门检查
     * </desc>
     *
     * @param dto 检查需要的参数
     * @return
     * @author zhouchun
     * @createDate 2021-05-18
     */
    @RequestMapping(path = "/sdkv3/openDoorCheck", method = RequestMethod.POST)
    SDKMessageV3 openDoorCheck(@RequestBody OpenDoorCheckDTO dto);

}